package cn.neusoft.feignClients.fallback;

import cn.neusoft.domain.Allocate;
import cn.neusoft.exception.AppException;
import cn.neusoft.feignClients.DeliveryFeignClient;
import cn.neusoft.vo.ResultBean;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DeliveryClientFallback implements DeliveryFeignClient {
    @Override
    public ResultBean AddAllocate(Allocate allocate) {
        return ResultBean.error(600,"调度中心服务异常，熔断降级");
    }

    @Override
    public List<Allocate> GetAllocateByDel_flag(String Del_flag) {

        throw new AppException(600, "调度中心服务异常，熔断降级");

    }
}
